package com.whisper.common.exception.file;

import static com.whisper.common.constant.ErrorCodeConstants.FILE_UPLOAD_EXCEED_MAX_SIZE;
import static com.whisper.common.constant.ErrorCodeConstants.FILE_SIZE_LENGTH_LIMIT_EXCEPTION;

/**
 * 文件名大小限制异常类
 * 
 * @author whisper
 */
public class FileSizeLimitExceededException extends FileException
{
    private static final long serialVersionUID = 1L;

    public FileSizeLimitExceededException(long defaultMaxSize)
    {
        super(FILE_UPLOAD_EXCEED_MAX_SIZE, new Object[] { defaultMaxSize });
    }

    public FileSizeLimitExceededException()
    {
        super(FILE_SIZE_LENGTH_LIMIT_EXCEPTION, null);
    }
}
